import request from '@/utils/request'

// 查询作物列表
export function listProcess(query) {
  return request({
    url: '/ewem/process/list',
    method: 'get',
    params: query
  })
}

export function addProcess(data) {
  return request({
    url: '/ewem/process/',
    method: 'post',
    data: data
  })
}

export function updateProcess(data) {
  return request({
    url: '/ewem/process/',
    method: 'put',
    data: data
  })
}

export function getType1() {
  return request({
    url: '/ewem/process/typelist1',
    method: 'post',
  })
}

export function getType2() {
  return request({
    url: '/ewem/process/typelist2',
    method: 'post',
  })
}

export function getType3() {
  return request({
    url: '/ewem/process/typelist3',
    method: 'post',
  })
}

export function getType4() {
  return request({
    url: '/ewem/process/typelist4',
    method: 'post',
  })
}

export function delProcess(processIds) {
  return request({
    url: '/ewem/process/'+processIds,
    method: 'delete',
  })
}


// 查询作物列表
export function listProcess2() {
  return request({
    url: '/ewem/process/list2',
    method: 'get',
  })
}


// 查询作物列表
export function listFirm(batchNum) {
  return request({
    url: '/ewem/process/detailList?batchNum='+batchNum,
    method: 'get',
  })
}


// 查询作物列表
export function listQuality(batchNum) {
  return request({
    url: '/ewem/process/detailList?batchNum='+batchNum,
    method: 'get',
  })
}


// 查询作物列表
export function listWareHouse(batchNum) {
  return request({
    url: '/ewem/process/detailList?batchNum='+batchNum,
    method: 'get',
  })
}

export function listAll(batchNum) {
  return request({
    url: '/ewem/process/detailList?batchNum='+batchNum,
    method: 'get',
  })
}



export function listtu() {
  return request({
    url: '/ewem/process/listAll',
    method: 'get',
  })
}

export function listOutinfo(batchNum) {
  return request({
    url: '/ewem/process/detailList?batchNum='+batchNum,
    method: 'get',
  })
}

export function listininfo(batchNum) {
  return request({
    url: '/ewem/process/detailList?batchNum='+batchNum,
    method: 'get',
  })
}



